home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / sipp / libsipp / makefile.dj < prev    next >
Encoding:
Makefile  |  1994-02-17  |  2.7 KB  |  88 lines

  1. #
  2. # Makefile for libsipp.a
  3. #
  4.  
  5. #These values are default if they are not overridden from the command line:
  6. CC = gcc -m486
  7. CFLAGS = -O2 -I.
  8.  
  9. # SHELL = /bin/sh
  10. RM = del /q
  11. CP = copy
  12.  
  13. IHDRS = bezier.h lightsource.h noise.h objects.h rendering.h smalloc.h \
  14.         viewpoint.h pixel.h
  15. EHDRS = sipp.h geometric.h shaders.h primitives.h sipp_pixmap.h sipp_bitmap.h
  16. HDRS = $(IHDRS) $(EHDRS)
  17. SRCS =  rendering.c geometric.c lightsource.c objects.c smalloc.c \
  18.         transforms.c viewpoint.c pixel.c \
  19.     basic_shader.c mask.c marble.c granite.c noise.c bozo.c bumpy.c \
  20.     planet.c wood.c phong.c strauss.c\
  21.     prism.c cone.c ellipsoid.c torus.c bezier.c bezier_lex.l \
  22.         sipp_pixmap.c sipp_bitmap.c
  23. OBJS = rendering.o geometric.o lightsource.o objects.o smalloc.o \
  24.        transforms.o viewpoint.o basic_shader.o marble.o granite.o mask.o\
  25.        bozo.o bumpy.o planet.o noise.o bezier.o bezier_lex.o pixel.o\
  26.        torus.o cone.o ellipsoid.o prism.o sipp_pixmap.o sipp_bitmap.o\
  27.        wood.o xalloca.o phong.o strauss.o
  28.  
  29.  
  30. # These are used if no other values are given at the command line:
  31. LIBDIR = .
  32. INCLUDEDIR = .
  33.  
  34.  
  35. .c.o:
  36.     $(CC) $(CFLAGS) -c $<
  37.  
  38. all: libsipp.a
  39.  
  40. libsipp.a:      $(OBJS)
  41.     ar rv $@ *.o
  42.     -ranlib $@
  43.  
  44. install: libsipp.a $(EHDRS)
  45.     $(CP) libsipp.a $(LIBDIR)
  46.     $(CP) $(EHDRS) $(INCLUDEDIR)
  47.  
  48.  
  49. tags:
  50.     etags -t $(HDRS) $(SRCS)
  51.  
  52. clean: 
  53.     $(RM) *.o *~ TAGS bezier_lex.c libsipp.a
  54.  
  55.  
  56. bezier_lex.c: bezier_lex.l
  57.     flex -t -8 $*.l >$*.c
  58.  
  59. rendering.o:         sipp.h rendering.h lightsource.h geometric.h \
  60.                      objects.h sipp_bitmap.h viewpoint.h
  61. geometric.o:         geometric.h sipp.h
  62. lightsource.o:       geometric.h lightsource.h sipp.h
  63. objects.o:           sipp.h
  64. pixel.o:             pixel.h sipp.h
  65. smalloc.o:           
  66. transforms.o:        geometric.h sipp.h
  67. viewpoint.o:         geometric.h smalloc.h viewpoint.h sipp.h
  68. basic_shader.o:      sipp.h geometric.h
  69. strauss.o:           sipp.h shaders.h geometric.h
  70. mask.o:              shaders.h sipp.h
  71. marble.o:            noise.h shaders.h sipp.h
  72. granite.o:           noise.h shaders.h sipp.h
  73. bozo.o:              noise.h shaders.h sipp.h
  74. bumpy.o:             noise.h shaders.h sipp.h geometric.h
  75. planet.o:            noise.h sipp.h geometric.h
  76. wood.o:              noise.h shaders.h sipp.h
  77. phong.o:             sipp.h shaders.h geometric.h
  78. noise.o:             noise.h sipp.h
  79. bezier.o:            bezier.h sipp.h  primitives.h
  80. bezier_lex.o:        bezier_lex.c bezier.h
  81. torus.o:             sipp.h primitives.h
  82. ellipsoid.o:         sipp.h primitives.h
  83. prism.o:             sipp.h primitives.h
  84. cone.o:              sipp.h primitives.h
  85. sipp_pixmap.o:       sipp_pixmap.h sipp.h
  86. sipp_bitmap.o:       sipp_bitmap.h sipp.h
  87. xalloca.o:           xalloca.h
  88.